package br.com.cast.scc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import br.com.cast.scc.dao.TipoVeiculoDAO;
import br.com.cast.scc.model.DominioTipoVeiculo;

@Component
public class TipoVeiculoServiceImpl implements TipoVeiculoService {
	
	@Autowired
	private TipoVeiculoDAO tipoVeiculoDAO;
	
	@Override
	public List<DominioTipoVeiculo> buscarTodos() {
		return tipoVeiculoDAO.consultaTodos(DominioTipoVeiculo.class);
	}

}
